<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="选择付款类型" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doCancel(){
		parent.ClosePop();
	}
	function doSelect(){
		var type="";
		if(document.getElementById("pay_type0")!=null && document.getElementById("pay_type0").checked){
			type="PURCHASE";
		}else if(document.getElementById("pay_type1")!=null && document.getElementById("pay_type1").checked){
			type="COOPER";
		}else{
			return;
		}
		parent.popRetVal=type;
		parent.ClosePop();
	}
	function doInit(){
		document.getElementById("okButton").focus();
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSelect();
		}
	}
</script>
<body oncontextmenu="return false" onload="doInit();" onKeyUp="checkInput();" class="sheet modal-dialog" style=" padding-top:15px;text-align:center;">
<div class="sheet-main" id="bodyDiv" style="width:210px;">
	<form name="frm" method="post">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:set var="pageTopTitle" value="请选择付款类型" />
				<c:set var="pageTopMark" value="" />
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-0" style="width:50%">
					<tr>
						<td align="left" onDblClick="document.getElementById('pay_type0').checked='true';doSelect();">
							<input type="radio" name="pay_type" id="pay_type0">采购付款
						</td>
					</tr>
					<tr>
						<td align="left" onDblClick="document.getElementById('pay_type1').checked='true';doSelect();">
							<input type="radio" name="pay_type" id="pay_type1" checked="true">外协付款<br>
						</td>
					</tr>
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom">
			<input type="button" class="buttom-a" value="确定" onClick="doSelect();" id="okButton">
			<input type="button" class="buttom-a" value="取消" onClick="doCancel();">					
		</div>
	</form>
</div>		
</body>
</html>